You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtx Class > TMtx Methods > SetCol Method > TMtx.SetCol Method ([In] TDenseMtxVec, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtx.SetCol Method ([In] TDenseMtxVec, int)

Copies values from vector to matrix column.

Syntax
C#
Visual Basic
public TMtx SetCol([In] TDenseMtxVec Vec, int Col);

Copy all Vec elements to the calling matrix Col column. The TMtxVec.ComplexComplexproperty of the calling matrix is adjusted automatically. An exception is raised, if array bounds are overrun.

var A: TMtx; V: TVec; begin CreateIt(A); CreateIt(V); try A.Size(2,1,True); V.SetIt(True,[1,2, 2,4]); // complex vector A.SetCol(V,0); finally FreeIt(V); FreeIt(A); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!